{extend name="Layout/base" /}
{block name="main"}
<table id="main-grid" data-url="{:url('get_extension_list_json')}">
    <thead>
        <tr>
            <th data-options="field:'id'" width="80">分机号</th>
            <th data-options="field:'id_name'" width="100">分机别名</th>
            <th data-options="field:'user_context'" width="150">上下文</th>
            <th data-options="field:'login_time',align:'right'" width="80">登录时间</th>
            <th data-options="field:'create_time',align:'right'" width="80">注册时间</th>
            <th data-options="field:'online_status_text',align:'right'" width="80">在线状态</th>
            <th data-options="field:'status',align:'center'" width="60">账户状态</th>
        </tr>
    </thead>
</table>
{/block}
{block name="body_ft"}
<script type="text/javascript">
    $(function () {
        $('#main-grid').datagrid({
            url: $('#main-grid').data('url'),
            fit: true,
            fitColumns: true,
            pagination: true,
            rownumbers: true,
            sortName: "id",
            sortOrder: "asc"
        });
    })
</script>
{/block}